<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JAR包比对工具</title>
    <link rel="stylesheet" th:href="@{/css/styles.css}">
</head>
<body>
    <div class="container">
        <h1>JAR包比对工具</h1>
        <div class="package-prefix-container">
            <label for="packagePrefix">包前缀:</label>
            <input type="text" id="packagePrefix" placeholder="例如: com.example" class="package-input">
            <div class="package-hint">输入需要比对的包前缀，例如: com</div>
        </div>
        <div class="upload-container">
            <div class="upload-section">
                <h2>旧版本</h2>
                <div class="file-upload" id="oldFileUpload">
                    <div class="file-upload-box">
                        <img th:src="@{/images/upload-icon.svg}" alt="上传图标" class="upload-icon">
                        <span class="upload-text">点击或拖拽文件到此处</span>
                        <input type="file" id="oldFile" accept=".jar" class="file-input">
                    </div>
                    <div class="file-info" id="oldFileInfo"></div>
                </div>
            </div>
            <div class="upload-section">
                <h2>新版本</h2>
                <div class="file-upload" id="newFileUpload">
                    <div class="file-upload-box">
                        <img th:src="@{/images/upload-icon.svg}" alt="上传图标" class="upload-icon">
                        <span class="upload-text">点击或拖拽文件到此处</span>
                        <input type="file" id="newFile" accept=".jar" class="file-input">
                    </div>
                    <div class="file-info" id="newFileInfo"></div>
                </div>
            </div>
        </div>
        <div class="action-container">
            <button id="compareButton" class="compare-btn" disabled>开始比对</button>
            <button id="callChainButton" class="compare-btn" disabled>调用链分析</button>
        </div>
        <div class="progress-container">
            <div class="progress-bar">
                <div class="progress" id="progressBar"></div>
            </div>
            <span class="progress-text" id="progressText">0%</span>
        </div>
        <div class="result-container" id="resultContainer">
            <h2>比对结果</h2>
            <div class="result-content" id="resultContent"></div>
        </div>
    </div>
    <script th:src="@{/js/script.js}"></script>
</body>
</html>
